package com.sina.shop.core.exception.serviceexception;

import com.sina.shop.core.exception.ShopCustomException;
import com.sina.shop.util.ResultCode;

/**
 * 资源未找到异常
 */
public class ResourceNotFoundException extends ShopCustomException {

    private String resourceId;

    public ResourceNotFoundException(String resourceId) {
        super(ResultCode.resourceNotFound);
        this.resourceId = resourceId;
    }

    public String getResourceId() {
        return this.resourceId;
    }

    public ResourceNotFoundException(ResultCode resultCode) {
        super(resultCode);
    }

    public ResourceNotFoundException(ResultCode resultCode, String message) {
        super(resultCode, message);
    }

    public ResourceNotFoundException(ResultCode resultCode, Throwable cause) {
        super(resultCode, cause);
    }

    public ResourceNotFoundException(ResultCode resultCode, String message, Throwable cause) {
        super(resultCode, message, cause);
    }
}
